
#include <iostream>
#include <cassert>

using namespace std;

const int transI[4]{0, 1, 1, 0};
const int transJ[4]{1, 0, 0, 1};

inline void TransIJ(const int (&trans)[4], int loopv, int dumIns, int &il, int &jl)
{
    il = trans[0] * loopv + trans[1] * dumIns;
    jl = trans[2] * loopv + trans[3] * dumIns;
}

int main()
{
    int pos{100};
    int i1, j1, is1, js1,
        i2, j2, is2, js2;
    TransIJ(transI, 2,3, i1, j1);
    cout << i1 << "\t" << j1 << endl;
    TransIJ(transJ, 2,3, i1, j1);
    cout << i1 << "\t" << j1 << endl;
    return 0;
}